﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;
using ZDSoft.QLMS.Entity.SystemSetting;
using ZDSoft.QLMS.Entity.Rules;

namespace ZDSoft.QLMS.Entity.CreateRule
{
    [ActiveRecord]
    public class SetQuestionTask : EntityBase<SetQuestionTask>
    {
        [BelongsTo("PublishManID")]
        public User PublishMan { get; set; }
        [BelongsTo("CourseID")]
        public Course Course { get; set; }
        [Property]
        public DateTime StartTime { get; set; }
        [Property]
        public DateTime StopTime { get; set; }
        [Property]
        public bool IsActive { get; set; }
        [Property]
        public string Remark { get; set; }

        [HasMany(typeof(TestPaperRule), ColumnKey = "SetQuestionTaskID", Inverse = true)]
        public IList<TestPaperRule> TestPaperRules { get; set; }
    }
}
